package com.javachmapi.weixinlogin.service;

import com.javachmapi.weixinlogin.auth.AccessToken;
import com.javachmapi.weixinlogin.entity.User;
import com.javachmapi.weixinlogin.entity.WechatUserInfo;

import java.util.List;
import java.util.Map;

/**
 * (User)表服务接口
 *
 * @author 宋利军
 * @since 2020-05-27 04:01:14
 */
public interface UserService {

    Map<String,String> wechatLoginUrl();

    AccessToken getAccessToken(String code);

    WechatUserInfo getWechatUserInfo(String access_token,String openid);

    User findUserByOpenid(String openId);

    void save(User user);
}